package org.wlc.demo;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 王立朝
 * @date 2022/6/12
 * @description:
 */
@RestController
public class TestController {


    @Resource
    private BizService bizService;

    @Resource
    private BizService2 bizService2;

    @GetMapping("/test/{msg}")
    public String test2(@PathVariable("msg") String msg) {
        return bizService.getCheckResultSuper(msg);
    }

    @GetMapping("/test3/{msg}/{level}")
    public String test3(@PathVariable("msg") String msg, @PathVariable("level") Integer level) {
        return bizService2.getCheckResultMuti(msg,level);
    }
}
